package com.jungle.base.entity;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;

import java.util.Date;

@MappedSuperclass
public abstract class BasePo<I> {
    public abstract void setId(I id);

    @Column(length = 32, columnDefinition = "varchar(32) comment '创建人ID'")
    private String createUserId;
    @Column(columnDefinition = "varchar(128) comment '创建人名称'")
    private String createUserName;
    @Column(columnDefinition = "datetime comment '创建时间'")
    private Date createTime;
    @Column(length = 32, columnDefinition = "varchar(32) comment '修改人ID'")
    private String updateUserId;
    @Column(columnDefinition = "varchar(128) comment '修改人名称'")
    private String updateUserName;
    @Column(columnDefinition = "datetime comment '修改时间'")
    private Date updateTime;

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
